<!-- Fixed navbar -->


<div class="container top-menu">

    <nav class="navbar navbar-default  navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                    <span class="sr-only">IT123cms</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                    
                    <a class="navbar-brand" href="__APP__/Index/">IT123cms</a>
              
            </div>
            <div id="navbar" class="navbar-collapse collapse">
                <ul class="nav navbar-nav">



                    <li moname="Index"><a href="__APP__/Index/"> <span class="glyphicon glyphicon-home"></span>  首页</a></li>


         
                    <li moname="Article"><a href="__APP__/Article/lists/"><span class="glyphicon glyphicon-book"></span> 文章</a></li>










      
                </ul>




                <form action="__APP__/Tag/" method="get" class="navbar-form navbar-right" role="search">
                    <div class="form-group">
                        <input type="text" name="tag" class="form-control" placeholder="关键字">
                    </div>
                    <button type="submit" class="btn btn-default">搜索</button>
                </form>


                <ul class="nav navbar-nav navbar-right">

                    <li class="dropdown">
                        <a href="#"  class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span class="glyphicon glyphicon-user"></span><span class="caret"></span></a>
						
						
						
                        <ul class="dropdown-menu">

                            <if condition="session('member.member_id') gt 0">
                                <li ><a href="__APP__/Member/">个人中心</a></li>
                                <li><a href="__APP__/Login/logout/">退出</a></li>

                                <else/>
                                <li><a href="__APP__/Login/">登录</a></li>
                                <li role="separator" class="divider"></li>
                                <li><a href="__APP__/Login/register/">注册</a></li>
                            </if>
                        </ul>
                    </li>


                </ul>








            </div><!--/.nav-collapse -->
        </div>
    </nav>


</div>	


<script type="text/javascript">

    var moname = '<php>echo MODULE_NAME </php>';
    $("#navbar ul li").each(function(i) {



        if ($("#navbar ul li").eq(i).attr("moname") == moname) {



            $("#navbar ul li").eq(i).addClass("active").siblings().removeClass("active");
        }
    });

</script>		
















